import request from '@/utils/request'

// 查询企微审批和合同列表
export function listQwprocesscontract(query) {
  return request({
    url: '/Wecom/qwprocesscontract/list',
    method: 'get',
    params: query
  })
}

export function listhtbyweid(query) {
  return request({
    url: '/Wecom/qwprocesscontract/listbyweid',
    method: 'get',
    params: query
  })
}

// 查询企微审批和合同详细
export function getQwprocesscontract(id) {
  return request({
    url: '/Wecom/qwprocesscontract/' + id,
    method: 'get'
  })
}

// 新增企微审批和合同
export function addQwprocesscontract(data) {
  return request({
    url: '/Wecom/qwprocesscontract',
    method: 'post',
    data: data
  })
}

// 修改企微审批和合同
export function updateQwprocesscontract(data) {
  return request({
    url: '/Wecom/qwprocesscontract',
    method: 'put',
    data: data
  })
}

// 删除企微审批和合同
export function delQwprocesscontract(id) {
  return request({
    url: '/Wecom/qwprocesscontract/' + id,
    method: 'delete'
  })
}
